<div class="col-sm-12">
    <div class="panel panel-default">
        <div class="panel-body">
            <div class="col-xs-10 col-xs-offset-1 form-horizontal">

                <div class="form-group">
                    <label class="col-xs-2 control-label">活动标题</label>
                    <div class="col-xs-6">
                        <input type="text" class="form-control" ng-model="activity.title">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">关联产品</label>
                    <div class="col-xs-6">
                        <ui-select ng-model="activity.sale_code" theme="bootstrap">
                            <ui-select-match placeholder="关联销售品">{{$select.selected.name}}</ui-select-match>
                            <ui-select-choices repeat="item.code as item in saleList | filter: $select.search">
                                <span ng-bind-html="item.name | highlight: $select.search"></span>
                            </ui-select-choices>
                        </ui-select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">每日库存</label>
                    <div class="col-xs-6">
                        <input type="number" class="form-control" ng-model="activity.stock" min="1" ng-disabled="is_edit">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">报名条件</label>
                    <div class="col-xs-6">
                        <input type="text" class="form-control" ng-model="activity.condition">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">简介</label>
                    <div class="col-xs-6">
                        <input type="text" class="form-control" ng-model="activity.introduction">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">温馨提示</label>
                    <div class="col-xs-6">
                        <input type="text" class="form-control" ng-model="activity.tips">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">地址</label>
                    <div class="col-xs-6">
                        <input type="text" class="form-control" ng-model="activity.address">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">景区电话</label>
                    <div class="col-xs-6">
                        <input type="text" class="form-control" ng-model="activity.phone">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">营业时间</label>
                    <div class="col-xs-6">
                        <input type="text" class="form-control" ng-model="activity.open_time">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">经度,纬度</label>
                    <div class="col-xs-6">
                        <input type="text" class="form-control" ng-model="activity.coordinate" placeholder="经度,纬度">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">市场价格</label>
                    <div class="col-xs-6">
                        <input type="number" class="form-control" ng-model="activity.market_price" placeholder="市场价格(元)" min="0">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">活动内容</label>
                    <div class="col-xs-6">
                        <div text-angular ng-model="activity.content"></div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">开始日期</label>
                    <div class="col-xs-6">
                        <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="period_start.value" is-open="period_start.opened"
                            ng-click="dateOpen($event, period_start)" placeholder="开始日期" ng-required="true" close-text="关闭" current-text="今天"
                            clear-text="清除" readonly/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">结束日期</label>
                    <div class="col-xs-6">
                        <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="period_end.value" is-open="period_end.opened"
                            ng-click="dateOpen($event, period_end)" placeholder="结束日期" ng-required="true" close-text="关闭" current-text="今天"
                            clear-text="清除" readonly/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">宣传图</label>
                    <div class="col-xs-6">
                        <img ng-src="{{activity.img}}" width="300" height="200" ng-model="pageInfo.img">
                        <input type="file" nv-file-select uploader="uploader" />
                        <br>
                        <ul class="list-group">
                            <li class="list-group-item" ng-repeat="item in uploader.queue">
                                文件名:
                                <span ng-bind="item.file.name"></span>
                                <button type="button" class="btn btn-default btn-xs" ng-click="item.upload()">
                                    <span class="glyphicon glyphicon-upload"></span> 上传</button>
                                <div class="progress mt10">
                                    <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader.progress + '%' }"></div>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-2 control-label">活动排序</label>
                    <div class="col-xs-6">
                        <input type="number" class="form-control" ng-model="activity.sort" min="1">
                    </div>
                </div>

                <button type="button" class="btn btn-primary btn-lg btn-block" ng-click="gogo()">提交</button>
            </div>
        </div>
    </div>
</div>